package cn.bs.mapper;

import cn.bs.domain.dao.Dishes;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishesMapper extends BaseMapper<Dishes> {


    List<Dishes> getDishesByName(String name);

    List<Dishes> getDishesByNameAndType(String name, int typeId);

    List<Dishes> getDishesByCanteenId(Integer canteenId);

    Dishes getById(Integer id);

    Integer getMaxId();

    void deleteByCanteenId(Integer canteenId);


}
